# Makefile

CC=g++
LDFLAGS=-L../util -g -lm -lpthread -lesidesocket -lesidethread -lesidesqlite
INCLUDE=-I../util

main: mCalcServer CalcClient

mCalcServer: mCalcServer.o
	$(CC) mCalcServer.o $(LDFLAGS) -o mCalcServer

CalcClient: CalcClient.o
	$(CC) CalcClient.o $(LDFLAGS) -o CalcClient

mCalcServer.o: mCalcServer.cc mCalcServer.h
	$(CC) $(INCLUDE) -c mCalcServer.cc

CalcClient.o: CalcClient.cc 
	$(CC) $(INCLUDE) -c CalcClient.cc
	
	
	
clean:
	rm *.o
	rm mCalcServer CalcClient
	rm *.exe
